# -*- coding: utf-8 -*-
# Created by shu2015626 on 2019-6-21
"""
更新交易日历
"""
import os
import tushare as ts
from django.conf import settings


class UpdateTradeCalendar(object):

    def run(self):
        df = ts.trade_cal()
        file_path = os.path.join(settings.BASE_DIR, "test/trade_cal.csv")
        df.to_csv(file_path)

